//
//  YLHomeProductModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/10/18.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLProductModel.h"
#import "YLInvestmentCertificateModel.h"
@implementation YLProductModel

+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
    return @{@"usableVouchers" : [YLInvestVouncherTextModel class],
             @"customerProductVouchers" : [YLInvestmentCertificateModel class]
             };
}

- (void)setUsableVouchers:(NSArray *)usableVouchers
{
    _usableVouchers = usableVouchers;
    NSMutableArray *arr = [NSMutableArray array];
    for (YLInvestVouncherTextModel *model in usableVouchers) {
        if (model.investVoucherText) {
            [arr addObject:model.investVoucherText];
        }
    }
    _tags = arr;
    
}


@end

@implementation YLInvestVouncherTextModel

@end
